//登录接口需要携带参数ts类型
export interface loginForm {
    username: string,
    password: string,
}


interface dataType {
    token?: string,
    message?: string,
}
//登录接口返回的数据类型
export interface loginResponse {
    code: number,
    data: dataType,
}


interface user {
    checkUser: {
        id: number,
        username: string,
        password: string,
        desc: string,
        roles: string[],
        buttons: string[],
        routes: string[],
        token: string,
        netName:string,
        headFace:string,
    }
}
//获取用户信息接口返回的数据类型
export interface getUserInfoResponse {
    code: number,
    data: user,
}